package com.ftg.learn.service.impl;

import com.ftg.learn.service.SmsService;
import jakarta.annotation.Resource;
import org.springframework.amqp.rabbit.core.RabbitTemplate;

/**
 * @author 布衣
 */
public class SmsServiceImpl implements SmsService {

    @Resource
    RabbitTemplate rabbitTemplate;

    @Override
    public String send(String phone) {
        rabbitTemplate.convertAndSend(null,"verfiy_code_sms",phone);
        return "发送成功";
    }

}
